package com.tang.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Tang
 * @classname MyComputuer
 * @description [  ]
 * @date 2021/6/3 20:00
 */
public class MyComputuer {

    private static List<byte[]> list = new ArrayList<>();

    public int compute() {
        int a = 1;
        int b = 2;
        int c = a + b;
        return c;
    }

    public static void main(String[] args) {
        MyComputuer myComputuer = new MyComputuer();
        System.out.println(myComputuer.compute());
        while (true) {
            new Thread(() -> {
                list.add(new byte[1024*10]);
            }).start();
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("放入....");
        }

    }

}